package run.siyuan.pipeline;

import cn.hutool.json.JSONUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

/**
 * @className: TbPipeline
 * @Description: TODO
 * @author: siyuan
 * @date: 2022/12/16 17:07
 */
@Slf4j
@Component
public class JDPipeline implements Pipeline {
    @Override
    public void process(ResultItems resultItems, Task task) {
        log.info("process:{}", JSONUtil.toJsonStr(resultItems));
    }
}
